﻿-var startdate = (DateTime)ViewData["startdate"] 
-var enddate = (DateTime)ViewData["enddate"]
-var months = ViewData["months"] as IList<object>
-var years = ViewData["years"] as IList<object>
#content
  %form.tableform{action="periodreport.ivp",method="post"}
    %h1
      %img.icon24{src="img/headericons/7days.png"}
      За период
      %span.small
        =HTMLHelper.Select("month",months,"name","id", ViewData.ContainsKey("currentMonth") ? (int)ViewData["currentMonth"] : DateTime.Now.Month,"")
        =HTMLHelper.Select("year",years,"name","id", ViewData.ContainsKey("currentYear") ? (int)ViewData["currentYear"] : DateTime.Now.Year,"")
        .indent5.inline
          с
        .indent5.inline
        %input#startdate.dateRU{name="startdate",maxlength="16",value=startdate.ToShortDateString()}
        .indent5.inline
          по
        .indent5.inline 
        %input#enddate.dateRU{name="enddate",maxlength="16",value=enddate.ToShortDateString()}
        .indent5.inline    
        %button#submit{type="submit"} Получить отчет
        %a.floatright.button{href="#",onclick="return exportExcel()"} <img src="img/buttons/excel.gif" title="Экспорт в Excel" />
    _error
    _table/reporttable       
#rightmenu
  _configurationmenu
